package cn.gjxblog.controller;

import cn.gjxblog.interfaces.HelloServiceInterface;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 作用:
 * 作者:gjx
 * 版本:V1.0
 * 创建时间: 2018/7/28 17:18
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private HelloServiceInterface helloServiceInterface;

    @RequestMapping("/hello")
    public String test(String name){
        String hello = helloServiceInterface.hello(name);
        return hello;
    }
}
